<style>
    input{
        border-radius: 10px!important;
    }
</style>
<form class="form-horizontal" id="form-system-setting">
    <div class="form-group">
        <label class="control-label col-xs-2">
            网站名称：
        </label>
        <div class="col-xs-6">
            <input name="system_title" type="text" class="form-control" placeholder="例如：一成建材" value="{$arr.system_title}" required/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2">
            服务热线：
        </label>
        <div class="col-xs-6">
            <input id="" name="server_tel" type="text" class="form-control" placeholder="服务热线" value="{$arr.server_tel}" required/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2">
            网站logo：
        </label>
        <div class="col-xs-6">
            {include file="public/singleImageUploader" uploader-name="logo"}
        </div>
    </div>
    <!--提交-->
    <div class="form-group">
        <label class="control-label col-xs-2"></label>
        <div class="col-xs-3">
            <button type="submit" class="btn btn-success btn-block">
                提交
            </button>
        </div>
    </div>
</form>
<script src="__PUBLIC__/vendors/jquery.validation/jquery.validate.min.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/additional-methods.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/messages_zh.min.js"></script>
<script>
    $(function () {
        /*验证*/
        $("#form-system-setting").validate({
            messages:
                {
                    server_tel:"请设置服务热线",
                    system_title: "请设置网站名称",
                },
            debug: true,
            submitHandler: function () {
                ajaxSubmit('form-system-setting', true);
            }
        });
    })

</script>